//创建图片数据库
const mongoose = require('mongoose')
const advSchema = mongoose.Schema({
  advTitle: {
    type: String,
    required: true
  },
  advType: {
    type: String,
    required: true
  },
  advOrder: {
    type: String,
    required: true
  },
  advHref: {
    type: String,
    require: true,
  },
  addTime: {
    type: String,
    require: true,
  },
  updateTime: {
    type: String,
    require: true,
    default: "--"
  }
})
const advModel = mongoose.model("advList", advSchema);
module.exports = advModel